package com.art.coconut.enums;

import com.art.coconut.service.IPropertyProcess;
import com.art.coconut.service.impl.BaseProcess;
import com.art.coconut.service.impl.EntityObjectProcess;
import com.art.coconut.service.impl.ListProcess;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;
import java.util.Map;

@Getter
@AllArgsConstructor
public enum PropertyTypeEnum {
    LIST_TYPE(List.class.getTypeName(), "List", new ListProcess())
//    , MAP_TYPE(Map.class.getTypeName(), "map")
    , ENTITY_OBJECT_TYPE("ENTITY_OBJECT_TYPE", "OBJECT_TYPE", new EntityObjectProcess())
    , BASE_TYPE(Map.class.getTypeName(), "BASE_OBJECT_TYPE", new BaseProcess())
    ;
    private final String typeName;
    private final String desc;
    private final IPropertyProcess propertyProcess;
}
